from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [

    url(r'usernames/(?P<username>\w{5,20})/count/$',views.RegisterUsernameView.as_view()),

    url(r'^$',views.RegisterCreateUserView.as_view()),

    # 添加登陆认证
    url(r'^auths/',obtain_jwt_token),

    url(r'^infos/',views.UserCenterInfoView.as_view()),

    url(r'^emails/$',views.UserUpdateEmailView.as_view()),

    url(r'^addresses/$',views.AddressView.as_view()),

    url(r'^email/verificatioj/$',views.UserEmailActiveView.as_view())
]